package com.zhongen.oa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongen.oa.entity.NotifyAnnouncementEntity;
import com.zhongen.oa.entity.dto.NotifyAnnouncementDto;

import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

public interface NotifyAnnouncementService extends IService<NotifyAnnouncementEntity> {

	IPage<NotifyAnnouncementDto> queryNotifyAnnouncementList(Page page, NotifyAnnouncementDto notifyAnnouncement);

	IPage<NotifyAnnouncementDto> queryNotifyAnnouncementByUser(Page page, NotifyAnnouncementDto notifyAnnouncement);

	/**
	 * 新增公告信息
	 */
	boolean insertNotifyAnnouncement(NotifyAnnouncementDto notifyAnnouncement);

	/**
	 * 修改公告信息
	 */
	boolean updateById(NotifyAnnouncementDto notifyAnnouncement);

	void getNotifyHtml(Long id, HttpServletResponse response);

	IPage<NotifyAnnouncementDto> queryNotifyAnnouncementListApp(Page page, NotifyAnnouncementDto notifyAnnouncement);

	List<String> test();
}
